package com.cs.study.homework._0205;

import java.util.Scanner;

public class Odd {
    public static void main(String[] args) {
        System.out.println("请输入一个正数：");
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        isOdd(num);
    }

    public static void isOdd(int num) {
        if (num % 2 != 0) {
            System.out.println("该数是奇数");
        }else {
            System.out.println("该数是偶数");
        }
    }
}
